import { SetMetadata } from '@nestjs/common';

export const REQUIRE_PERMISSION_KEY = 'requirePermission';
export const RequirePermission = (...codes: string[]) =>
  SetMetadata(REQUIRE_PERMISSION_KEY, codes);
